package com.booter.merchant.service;

import com.booter.merchant.dao.MerchantMapper;
import com.booter.model.Merchant;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MerchantService {

	@Autowired
	private MerchantMapper merchantMapper;

	public Long insert(Merchant merchant){
		return this.merchantMapper.insert(merchant);
	}

	public Merchant getById(Long id){
		return this.merchantMapper.getById(id);
	}

	public  int deleteById(Long id){
		return this.merchantMapper.deleteById(id);
	}


}
